gtk4.git
16 years agoMake link coloring in labels optional
Matthias Clasen [Thu, 9 Jul 2009 17:59:35 +0000 (13:59 -0400)]
Make link coloring in labels optional

Turns out that link coloring is expected for actual hypertext-like
use, but when using links just as 'mutant button', then it gets
in the way.

16 years agoAdd xevent->xcrossing.mode to GDK_NOTE() for enter and leave notify events
Michael Natterer [Thu, 9 Jul 2009 15:59:41 +0000 (17:59 +0200)]
Add xevent->xcrossing.mode to GDK_NOTE() for enter and leave notify events

16 years agoRemove accidentally added debug spew
Alexander Larsson [Thu, 9 Jul 2009 15:10:56 +0000 (17:10 +0200)]
Remove accidentally added debug spew

16 years agoCorrectly set enter/leave events as detail=nonlinear
Alexander Larsson [Thu, 9 Jul 2009 14:48:22 +0000 (16:48 +0200)]
Correctly set enter/leave events as detail=nonlinear

If we get a nonlinear enter/leave notify on the toplevel we need
to set nonlinear in all the events we send, even if the in-toplevel
tree is linear.

This fixes combobox menus popping down immediately when you click
(not hold). (bug #587559)

16 years agoDisallow single-include unconditionally because this is a new file
Michael Natterer [Thu, 9 Jul 2009 14:31:27 +0000 (16:31 +0200)]
Disallow single-include unconditionally because this is a new file

16 years agoAdd single-include guard
Michael Natterer [Thu, 9 Jul 2009 14:30:52 +0000 (16:30 +0200)]
Add single-include guard

16 years agoDutch translation updated
Tino Meinen [Thu, 9 Jul 2009 10:36:05 +0000 (11:36 +0100)]
Dutch translation updated

16 years agoDutch translation updated
Tino Meinen [Thu, 9 Jul 2009 10:35:03 +0000 (11:35 +0100)]
Dutch translation updated

16 years agoUpdated Ukrainian translation
Maxim V. Dziumanenko [Thu, 9 Jul 2009 07:48:54 +0000 (10:48 +0300)]
Updated Ukrainian translation

16 years agoUpdated Ukrainian translation
Maxim V. Dziumanenko [Thu, 9 Jul 2009 07:45:55 +0000 (10:45 +0300)]
Updated Ukrainian translation

16 years agoUpdated Spanish translation
Jorge González [Thu, 9 Jul 2009 05:36:52 +0000 (07:36 +0200)]
Updated Spanish translation

16 years agoGtkEntryBuffer holds text for GtkEntry
Stef Walter [Thu, 9 Jul 2009 01:41:53 +0000 (20:41 -0500)]
GtkEntryBuffer holds text for GtkEntry

Adds a 'model' type buffer for GtkEntry in which the actual
textual data is stored. GtkEntryBuffer can be subclassed.

Among other things, this allows GtkEntry to be used for secrets
that need to be stored in non-pageable memory. It also allows
buffers to be shared by entries.

See bug #576801.

16 years agoHandle non-native windows in the gdk test utils
Alexander Larsson [Wed, 8 Jul 2009 16:40:05 +0000 (18:40 +0200)]
Handle non-native windows in the gdk test utils

We need to add the non-native offset to the root coords when
sending events.

16 years agoDon't emulate map/unmap events for native windows
Alexander Larsson [Wed, 8 Jul 2009 16:36:24 +0000 (18:36 +0200)]
Don't emulate map/unmap events for native windows

We really need to wait for the MapNotify from the xserver to ensure
that the window has been mapped, as it may be delayed by the WM, network
or similar things.

This fixes a problem in the /ui-tests/keys-events gtk test

16 years agoFix defaultvalue test due to csw
Alexander Larsson [Wed, 8 Jul 2009 14:59:14 +0000 (16:59 +0200)]
Fix defaultvalue test due to csw

Initialize GdkWindowAttr required fields. This makes sure toplevel
windows are not accidentally larger than 16bit.

16 years agoRemove unused variable
Benjamin Otte [Wed, 8 Jul 2009 15:54:17 +0000 (17:54 +0200)]
Remove unused variable

16 years agoFix the remaining issues that broke the PLT check
Michael Natterer [Wed, 8 Jul 2009 15:01:32 +0000 (17:01 +0200)]
Fix the remaining issues that broke the PLT check

Add internal API for the default button box layouts to so we don't
need to call deprectated GTK+ functions (which are invisible with
GTK_DISABLE_DEPRECATED).

16 years agoMove get_cells implementation from deprecated function
Alexander Larsson [Wed, 8 Jul 2009 14:41:32 +0000 (16:41 +0200)]
Move get_cells implementation from deprecated function

This way the deprecated function calls the new one instead of the other
way around, which fixes pltcheck.sh

16 years agoMove get_cells implementation from deprecated function
Alexander Larsson [Wed, 8 Jul 2009 14:38:40 +0000 (16:38 +0200)]
Move get_cells implementation from deprecated function

This way the deprecated function calls the new one instead of the other
way around, which fixes pltcheck.sh

16 years agoSome indentation fixes and minor cleanup
Michael Natterer [Wed, 8 Jul 2009 14:37:29 +0000 (16:37 +0200)]
Some indentation fixes and minor cleanup

16 years agoMake gdk build with GDK_DISABLE_DEPRECATED
Matthias Clasen [Wed, 8 Jul 2009 13:53:41 +0000 (09:53 -0400)]
Make gdk build with GDK_DISABLE_DEPRECATED

Turns out gdk_window_get_deskrelative_origin is now called in
gdk as well.

16 years agoUse g_object_unref instead of deprecated gdk_pixmap_unref
Kjartan Maraas [Wed, 8 Jul 2009 13:48:51 +0000 (15:48 +0200)]
Use g_object_unref instead of deprecated gdk_pixmap_unref

16 years agopo/vi.po: updated key names
Nguyễn Thái Ngọc Duy [Wed, 8 Jul 2009 03:42:16 +0000 (13:42 +1000)]
po/vi.po: updated key names

16 years agoUpdating Estonian translation
Ivar Smolin [Tue, 7 Jul 2009 21:07:16 +0000 (00:07 +0300)]
Updating Estonian translation

16 years agoUpdated Spanish translation
Jorge González [Tue, 7 Jul 2009 20:39:47 +0000 (22:39 +0200)]
Updated Spanish translation

16 years agoImprove translator comment. Fixes bug #569393.
Andre Klapper [Tue, 7 Jul 2009 15:37:07 +0000 (16:37 +0100)]
Improve translator comment. Fixes bug #569393.

16 years agoThe shape is in window coordinate, so properly offset it when using it
Alexander Larsson [Tue, 7 Jul 2009 14:51:11 +0000 (16:51 +0200)]
The shape is in window coordinate, so properly offset it when using it

16 years agoOptimize clip-to-window with clipmask case when fully visible or obscured
Alexander Larsson [Tue, 7 Jul 2009 13:14:16 +0000 (15:14 +0200)]
Optimize clip-to-window with clipmask case when fully visible or obscured

This avoids creating alot of bitmaps in common trivial cases.

16 years agoMake clipmasks work for pixbuf rendering
Alexander Larsson [Tue, 7 Jul 2009 12:51:38 +0000 (14:51 +0200)]
Make clipmasks work for pixbuf rendering

This is more important in the client side windows world, as clip masks
may be used for clipping to non-native subwindows. This fixes a bug
in aisleriot where it uses masked pixbuf drawing and it ends up drawing
over the moving card subwindow.

16 years agoAdd _gdk_gc_get_clip_mask
Alexander Larsson [Tue, 7 Jul 2009 12:33:48 +0000 (14:33 +0200)]
Add _gdk_gc_get_clip_mask

Internal function to get the clip mask of a gc (if set)

16 years agoUpdated Swedish translation
Daniel Nylander [Tue, 7 Jul 2009 15:02:17 +0000 (17:02 +0200)]
Updated Swedish translation

16 years agoReenable tests
Matthias Clasen [Tue, 7 Jul 2009 05:08:01 +0000 (01:08 -0400)]
Reenable tests

16 years agoBump version
Matthias Clasen [Tue, 7 Jul 2009 05:07:27 +0000 (01:07 -0400)]
Bump version

16 years ago2.17.3
Matthias Clasen [Tue, 7 Jul 2009 05:05:29 +0000 (01:05 -0400)]
2.17.3

16 years agoFix some distcheck issues
Matthias Clasen [Tue, 7 Jul 2009 04:29:14 +0000 (00:29 -0400)]
Fix some distcheck issues

16 years agoTemporarily turn of tests
Matthias Clasen [Tue, 7 Jul 2009 04:14:31 +0000 (00:14 -0400)]
Temporarily turn of tests

Since there are some csw regressions.

16 years agoMake distcheck pass
Matthias Clasen [Tue, 7 Jul 2009 03:06:46 +0000 (23:06 -0400)]
Make distcheck pass

16 years agoFix a typo
Matthias Clasen [Tue, 7 Jul 2009 01:37:42 +0000 (21:37 -0400)]
Fix a typo

16 years agoUpdate NEWS
Matthias Clasen [Tue, 7 Jul 2009 00:25:17 +0000 (20:25 -0400)]
Update NEWS

16 years agoBug 587485 – GMountOperation::show-processes support
David Zeuthen [Wed, 1 Jul 2009 03:46:02 +0000 (23:46 -0400)]
Bug 587485 – GMountOperation::show-processes support

 - Add support for GMountOperation::show-processes

 - Implement process look up for the X11 target

16 years agoUse gdk_display_sync instead of XSync
Matthias Clasen [Mon, 6 Jul 2009 06:03:21 +0000 (02:03 -0400)]
Use gdk_display_sync instead of XSync

16 years agoFix redraw issues in GtkInfoBar
Matthias Clasen [Mon, 6 Jul 2009 05:56:05 +0000 (01:56 -0400)]
Fix redraw issues in GtkInfoBar

This was reported in bug 587716. I have no idea why this used
to work just fine for me...

16 years agoFix the doc build
Matthias Clasen [Mon, 6 Jul 2009 05:20:35 +0000 (01:20 -0400)]
Fix the doc build

16 years agoMore documentation fixes
Matthias Clasen [Fri, 3 Jul 2009 20:37:14 +0000 (16:37 -0400)]
More documentation fixes

16 years agoMore small documentation fixups
Matthias Clasen [Fri, 3 Jul 2009 19:36:48 +0000 (15:36 -0400)]
More small documentation fixups

16 years agoSmall documentation fixes
Matthias Clasen [Fri, 3 Jul 2009 19:35:41 +0000 (15:35 -0400)]
Small documentation fixes

16 years agoHack that works around firefox plugin crash
Alexander Larsson [Sat, 4 Jul 2009 18:13:43 +0000 (20:13 +0200)]
Hack that works around firefox plugin crash

It turns out that mozilla, as per the gtk2xt code selects for input on
the socket with a mask of 0x0fffff (for god knows why) which includes
ButtonPressMask, causing a BadAccess if someone else also selects for
this. As per the client-side windows merge we always normally selects
for button press so we can emulate it on client side children that
selects for button press. However, we don't need this for GtkSocket,
so we unselect it here, fixing the crashes in firefox.

16 years agoUpdated Hebrew translation
Yaron Shahrabani [Sat, 4 Jul 2009 17:49:39 +0000 (20:49 +0300)]
Updated Hebrew translation

16 years agoUpdated msvc build
Hans Breuer [Sat, 4 Jul 2009 10:15:39 +0000 (12:15 +0200)]
Updated msvc build

16 years agoFix condition to deliver root coords
Hans Breuer [Sat, 4 Jul 2009 10:10:57 +0000 (12:10 +0200)]
Fix condition to deliver root coords

16 years agoEnable window creation with GDK_WINDOW_CHILD again
Hans Breuer [Sat, 4 Jul 2009 10:07:58 +0000 (12:07 +0200)]
Enable window creation with GDK_WINDOW_CHILD again

16 years agoInitialize 'private' before use
Hans Breuer [Sat, 4 Jul 2009 10:03:24 +0000 (12:03 +0200)]
Initialize 'private' before use

16 years agoFix includes for missing prototypes
Hans Breuer [Sat, 4 Jul 2009 10:01:39 +0000 (12:01 +0200)]
Fix includes for missing prototypes

16 years agoUse G_PI rather than M_PI
Hans Breuer [Sat, 4 Jul 2009 09:59:26 +0000 (11:59 +0200)]
Use G_PI rather than M_PI

16 years agoUndef USE_MMX for msvc build
Hans Breuer [Sat, 4 Jul 2009 09:58:27 +0000 (11:58 +0200)]
Undef USE_MMX for msvc build

16 years agogtk_status_icon_get_title() must return a value
Hans Breuer [Wed, 1 Jul 2009 20:29:32 +0000 (22:29 +0200)]
gtk_status_icon_get_title() must return a value

16 years agoUpdated msvc build
Hans Breuer [Wed, 1 Jul 2009 19:32:46 +0000 (21:32 +0200)]
Updated msvc build

16 years agoConditionally define WS_EX_COMPOSITED
Hans Breuer [Wed, 1 Jul 2009 19:32:11 +0000 (21:32 +0200)]
Conditionally define WS_EX_COMPOSITED

16 years agoAdd another bug ref
Matthias Clasen [Fri, 3 Jul 2009 19:21:50 +0000 (15:21 -0400)]
Add another bug ref

16 years agoAdd doc stubs
Matthias Clasen [Fri, 3 Jul 2009 19:17:26 +0000 (15:17 -0400)]
Add doc stubs

16 years agoAdd new symbols
Matthias Clasen [Fri, 3 Jul 2009 05:39:59 +0000 (01:39 -0400)]
Add new symbols

16 years agoUpdate for 2.17.3
Matthias Clasen [Fri, 3 Jul 2009 05:32:46 +0000 (01:32 -0400)]
Update for 2.17.3

16 years agoUpdated German translation.
Hendrik Richter [Fri, 3 Jul 2009 06:20:49 +0000 (08:20 +0200)]
Updated German translation.

16 years agoMake stock buttons have mnemonics again
Matthias Clasen [Wed, 1 Jul 2009 19:11:03 +0000 (15:11 -0400)]
Make stock buttons have mnemonics again

We used to treat stock buttons as having an implicit use-underline.
A recent but fix lost that.

16 years agoAdd a testcase for use-stock/use-underline in buttons
Matthias Clasen [Wed, 1 Jul 2009 19:04:31 +0000 (15:04 -0400)]
Add a testcase for use-stock/use-underline in buttons

The fix for bug 586330 caused some unexpected behaviour changes, that
this testcase ought to illustrate.

16 years agofix wrap width calculations that caused item height to be wrong
Cody Russell [Wed, 1 Jul 2009 18:17:51 +0000 (13:17 -0500)]
fix wrap width calculations that caused item height to be wrong

Fix by logari81 to the wrap width calculations fir GtkIconView. #490724

16 years agoMake GdkDrawable draw_drawable backwards compat
Alexander Larsson [Wed, 1 Jul 2009 17:50:49 +0000 (19:50 +0200)]
Make GdkDrawable draw_drawable backwards compat

Turns out pygtk build broke due to the argument addition to draw_drawable.
So, we now add a new vfunc for the new draw_drawable and are thus
backwards compat.

16 years agoMerge branch 'client-side-windows'
Alexander Larsson [Wed, 1 Jul 2009 14:15:03 +0000 (16:15 +0200)]
Merge branch 'client-side-windows'

16 years agoMove new draw_drawable argument to end to make it more backwards compat
Alexander Larsson [Wed, 1 Jul 2009 14:13:31 +0000 (16:13 +0200)]
Move new draw_drawable argument to end to make it more backwards compat

16 years agoClean up embedding api
Alexander Larsson [Wed, 1 Jul 2009 12:36:36 +0000 (14:36 +0200)]
Clean up embedding api

we now use gdk_offscreen_window_set_embedder() instead of a signal
to get the parent. This also replaces set_has_offscreen_changes.

Rename "parent" in all embedding related names to "embedder" to make it
more obviously different than the normal parent.

Rename gdk_window_get_offscreen_pixmap to gdk_offscreen_window_get_pixmap
to match the other offscreen calls.

Rename gdk_window_offscreen_children_changed to gdk_window_geometry_changed
as this is more descriptive.

16 years agoRemove debug spew, add TODO_CSW
Alexander Larsson [Wed, 1 Jul 2009 11:33:45 +0000 (13:33 +0200)]
Remove debug spew, add TODO_CSW

16 years agogdk_win32_blit, don't get the size of the impl
Alexander Larsson [Wed, 1 Jul 2009 11:33:06 +0000 (13:33 +0200)]
gdk_win32_blit, don't get the size of the impl

16 years agoSome win32 cleanups
Alexander Larsson [Wed, 1 Jul 2009 10:06:57 +0000 (12:06 +0200)]
Some win32 cleanups

16 years agoFix win32 GC set_region handling of reset_region
Alexander Larsson [Wed, 1 Jul 2009 10:06:04 +0000 (12:06 +0200)]
Fix win32 GC set_region handling of reset_region

16 years agoclean up code in gtk_list_store_set_n_columns()
Benjamin Otte [Tue, 30 Jun 2009 11:22:51 +0000 (13:22 +0200)]
clean up code in gtk_list_store_set_n_columns()

Previous code's messiness noted by Francisco Javier Taboada Aguado
in http://mail.gnome.org/archives/gtk-devel-list/2009-June/msg00001.html

16 years agoMake win32 backend build and minimally work
Alexander Larsson [Wed, 1 Jul 2009 08:26:37 +0000 (10:26 +0200)]
Make win32 backend build and minimally work

16 years agoDon't use GDK_WINDOW_SCREEN, as its an X11 specific macro
Alexander Larsson [Wed, 1 Jul 2009 08:23:29 +0000 (10:23 +0200)]
Don't use GDK_WINDOW_SCREEN, as its an X11 specific macro

16 years agoDon't return value from void function
Alexander Larsson [Wed, 1 Jul 2009 08:11:15 +0000 (10:11 +0200)]
Don't return value from void function

This fixes the previous commit where the return value was removed.

16 years agopo/vi.po: updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Wed, 1 Jul 2009 04:15:19 +0000 (14:15 +1000)]
po/vi.po: updated Vietnamese translation

16 years agoAdd missing symbols to gdk.symbols
Alexander Larsson [Tue, 30 Jun 2009 10:40:51 +0000 (12:40 +0200)]
Add missing symbols to gdk.symbols

16 years agoAdd gdk_window_get_root_coords to gdk.symbols
Alexander Larsson [Tue, 30 Jun 2009 08:55:06 +0000 (10:55 +0200)]
Add gdk_window_get_root_coords to gdk.symbols

16 years agoMove destroyed check to common code for get_origin & get_root_coords
Alexander Larsson [Tue, 30 Jun 2009 07:30:53 +0000 (09:30 +0200)]
Move destroyed check to common code for get_origin & get_root_coords

Also remove weird return value from get_root_coords

16 years agoImprove printing example
Matthias Clasen [Sun, 28 Jun 2009 20:58:00 +0000 (16:58 -0400)]
Improve printing example

Handle Documents folder being NULL, and handle output formats.

16 years agoImprove handling of print-to-file uri
Matthias Clasen [Sun, 28 Jun 2009 20:14:21 +0000 (16:14 -0400)]
Improve handling of print-to-file uri

Going from print-to-file to a real printer and back used to nuke
an app-provided uri; now we keep the initial settings around to
avoid that.  Fixes bug 587086.

16 years agoWhitespace cleanups
Matthias Clasen [Sun, 28 Jun 2009 20:13:33 +0000 (16:13 -0400)]
Whitespace cleanups

16 years agoUpdated Spanish translation
Jorge Gonzalez [Sat, 27 Jun 2009 12:57:54 +0000 (14:57 +0200)]
Updated Spanish translation

16 years agomake the size column resizable
Benjamin Otte [Mon, 22 Jun 2009 19:51:19 +0000 (21:51 +0200)]
make the size column resizable

16 years agomake sure the "Create folder" button doesn't get shown accidentally
Benjamin Otte [Thu, 25 Jun 2009 13:50:55 +0000 (15:50 +0200)]
make sure the "Create folder" button doesn't get shown accidentally

Switching to search or recent files mode and back to browse mode made
the button visible previously

16 years agocheck for allowed NULL inside g_return_if_fail() statements
Benjamin Otte [Tue, 23 Jun 2009 07:26:23 +0000 (09:26 +0200)]
check for allowed NULL inside g_return_if_fail() statements

This patch replaces

if (foo != NULL)
  g_return_if_fail (GTK_IS_FOO (foo));

with

g_return_if_fail (foo == NULL || GTK_IS_FOO (foo));

16 years agoclarify the init value for the default sort column id
Benjamin Otte [Sun, 21 Jun 2009 20:35:15 +0000 (22:35 +0200)]
clarify the init value for the default sort column id

The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/

16 years agounconditionally set right alignment for the size column
Benjamin Otte [Thu, 18 Jun 2009 19:10:33 +0000 (21:10 +0200)]
unconditionally set right alignment for the size column

16 years agoremove unused variables
Benjamin Otte [Wed, 17 Jun 2009 13:17:04 +0000 (15:17 +0200)]
remove unused variables

16 years agoDon't hide foreign children when emulating visibility
Alexander Larsson [Fri, 26 Jun 2009 18:11:57 +0000 (20:11 +0200)]
Don't hide foreign children when emulating visibility

We emulate visibility by unmapping (in X) all mapped (according to
gdk) windows that are not visible (all parents mapped). This is because
there may be client side windows inbetween the native windows in the
hierarchy, so you can't know a native window is visible just because
all the parent native windows are mapped.

However, we don't want to unmap foreign windows, as that may cause all
sort of unexpected issues. This should be safe, because generally the
parent of a foreign window is a native window (e.g. a socket), so its
gdk visibility state is the same as the Xserver one.

This fixes an issue with the GDM notification area where the unmap of
the plug caused spurious UnmapNotify events that confused GtkSocket and
caused icons to become one pixel wide.

16 years agoBetter implementation of native clear_area
Alexander Larsson [Fri, 26 Jun 2009 15:07:24 +0000 (17:07 +0200)]
Better implementation of native clear_area

Last commit was bad, as it didn't clip against client side
children. This implements such clipping first and then
only clears the rectangles that need to be cleared.

16 years agoImplement gdk_window_clear_area natively for foreign windows
Alexander Larsson [Fri, 26 Jun 2009 13:45:53 +0000 (15:45 +0200)]
Implement gdk_window_clear_area natively for foreign windows

This fixes a redraw issue with the notification area in xfce4.

16 years agoClip cairo drawing against client-side child windows
Alexander Larsson [Fri, 26 Jun 2009 12:20:05 +0000 (14:20 +0200)]
Clip cairo drawing against client-side child windows

This is how cairo works with native children.
This fixes an issue where the drag target outline is visible on the
evolution folder treeview when it isn't with native windows.

16 years agoBug 586691 – Better GtkInfoBar defaults
David Zeuthen [Mon, 22 Jun 2009 21:22:23 +0000 (17:22 -0400)]
Bug 586691 – Better GtkInfoBar defaults

Signed-off-by: David Zeuthen <davidz@redhat.com>
16 years agoUpdating Estonian translation
Ivar Smolin [Thu, 25 Jun 2009 16:29:22 +0000 (19:29 +0300)]
Updating Estonian translation

16 years agoEnsure that we always calculate clip regions for root windows
Alexander Larsson [Thu, 25 Jun 2009 14:59:18 +0000 (16:59 +0200)]
Ensure that we always calculate clip regions for root windows

Without this we can't draw to them, which caused problems for e.g.
gnome-settings-daemon clearing the background when the desktop
background changed.

Note: We don't actually clip away child windows from the root window,
the clip is just based on the size of the root window.

16 years agoFix g_signal_emit calls
Alexander Larsson [Thu, 25 Jun 2009 14:57:13 +0000 (16:57 +0200)]
Fix g_signal_emit calls

The switch to g_signal_emit was all messed up, I forgot to add signals[]
around the signal enum and did not pass in the detail quark.